Skip to content

11주차 과제입니다.#81

Open
daeguhighman wants to merge 149 commits intosnulion11th-seminar:donghyunfrom
daeguhighman:real-donghyun
Open

11주차 과제입니다.#81
daeguhighman wants to merge 149 commits intosnulion11th-seminar:donghyunfrom
daeguhighman:real-donghyun

Conversation

@daeguhighman
Copy link

.

@daeguhighman daeguhighman requested a review from jihyune May 30, 2023 01:23
Copy link

@whwoohw whwoohw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳 깔끔하게 잘 작성해준 것 같습니다!
간단한 궁금중들 몇개 적어뒀습니다. 수정하고 싶으시면 수정하고 merge까지 해주세요!

Comment on lines +39 to +45
setFormData((prevFormData) => ({
...prevFormData,
username: user.username,
email: userprofile.user.email,
major: userprofile.major,
college: userprofile.college,
}));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳이 함수형 업데이터 형식으로 적은 이유가 있을까요?

Comment on lines +28 to +34
useEffect(() => {
const getUserAPI = async () => {
const user = await getUser();
setUser(user);
};
getUserAPI();
}, []);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사실 getUserProfileAPI에 필요한 정보는 다 올텐데, 굳이 비슷한 api를 2번 호출하는건 비효율적이겠죠?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants